<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
         contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>场地资费设置 - 徐二组体育馆网上系统后台</title>
    <link href=" ${pageContext.request.contextPath}/static/cssa/nav.css" rel="stylesheet" type="text/css"/>
    <script src="${pageContext.request.contextPath}/static/js/nav.js" type="text/javascript"></script>
    <script src="${pageContext.request.contextPath}/static/js/focus.js" type="text/javascript"></script>
    <link href=" ${pageContext.request.contextPath}/static/cssa/common.css" rel="stylesheet" type="text/css"/>
    <link href=" ${pageContext.request.contextPath}/static/cssa/ground.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<%@ include file="../header.jsp" %>
<div id="main">
    <div id="row_1">
        <table class="ground-list" cellspacing="2px">
            <tr>
                <th scope="col">场地编号</th>
                <th scope="col">类型</th>
                <th scope="col">名称</th>
                <th scope="col">资费</th>
                <th scope="col">操作</th>
            </tr>
            <c:forEach items="${placeList}" var="list">
                <form action="${pageContext.request.contextPath}/place/updatePlace" method="post" onsubmit="return confirm('确定修改该场地?');">
                    <tr>
                        <td>${list.getPlaceID()}</td>
                        <td>
                            <select name="type" id="select">
                            <c:forEach items="${typeList}" var="tList">
                                <option value="${tList.getType()}">${tList.getTypeName()}</option>
                            </c:forEach>
                            </select>
                        </td>
                        <td><input name="placeName" type="text" value="${list.getPlaceName()}"/></td>
                        <td><input name="money" type="text" value="${list.getMoney()}"/>
                            <input name="placeID" type="hidden" value="${list.getPlaceID()}"/>
                            元/小时
                        </td>
                        <td><input name="action" type="hidden" value="setting"/>
                            <input name="submitSetting" type="submit" value="修改"/></td>
                    </tr>
                </form>
            </c:forEach>
        </table>
    </div>
</div>
<script>
  var def = "4";
</script>
<%@ include file="../footer.jsp" %>
</body>
</html>
